﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Crank.Core.Extensions
{
    public static class StringExtensions
    {
        public static bool IsOnlyWhitespace(this string source)
        {
            return source.Trim() == String.Empty;
        }

        public static string Singularize(this string plural)
        {
            return Inflector.Singularize(plural);
        }

        public static string Pluralize(this string singular)
        {
            return Inflector.Pluralize(singular);
        }
    }
}
